package Structural.Proxy.demo4;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.testng.annotations.Test;

/**
 * @author : yue.cao
 * @since : 2021-04-29
 */
public class ProxyDemo4 {

	@Test
	public void t1() {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:/spring/proxyDemo3.xml");
		context.getBean(Tank.class).move();
	}
	@Test
	public void t2() {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:/spring/proxyDemo3Auto.xml");
		context.getBean(Tank.class).move();
	}
}
